Bugs记录3 |
您所在的位置:网站首页 › figuremargins too large › Bugs记录3 |
绘图时遇到的一系列报错: RStudio中报错Error in plot.new() : figure margins too large 原因:图的边距太小,就是边距设置的太大。 image.png通过调大上面图"画图和帮助窗口",然后将代码重新运行,就可以显示出图片了。 2.Error in .Call.graphics(C_palette2, .Call(C_palette2, NULL)) : invalid graphics state 解决方案:可能是作图太多,R无法承受,清空所有绘图即可 dev.off() ggplot(metrics, aes(x=RSQ, fill=inDbSNP)) + geom_density(alpha=0.5) + scale_x_continuous(name="MaCH / Thunder Imputation Quality") + scale_y_continuous(name="Density") + theme(legend.position="top") image.png 3.见图这个情况的解决就是用下面这行代码直接保存在后台能看见。 ggsave("heat_vo.png",width = 15,height = 10) |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |